package com.ifengchao.job;

import com.ifengchao.service.DealPlatformService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 处理平台
 * @author chen
 *
 */
@Component(value="dealPlatformJob")
public class DealPlatformJob {
	private static final Logger logger = Logger.getLogger(DealPlatformJob.class);
	@Autowired(required=true)
	private DealPlatformService dealPlatformService;
	
	/**
	 * 处理订单逻辑
	 */
	public void executeTask(){
		System.out.println("-----进入平台处理job------");
		logger.info("-----进入平台处理job------");
		try {
			dealPlatformService.verifyZzyPlatform();
		} catch (Exception e) {
			logger.error("平台处理出错：",e);
		}
		
	}	
}